package com.lvmama.pangolin.tn.service;

import java.util.List;
import java.util.Map;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.tn.TNTicketCommodityItem;
import com.lvmama.pangolin.entity.tn.TNTicket_CommodityDetail;

public interface TNTicketCommodityItemsService {
	/**  
	* @Title：TCTicketCommodityDetailService.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月17日上午11:16:48  
	*/
	public int insert(TNTicket_CommodityDetail item)throws Exception;
	public void insertSelective(TNTicketCommodityItem item);
	public TNTicketCommodityItem selectById(String id,String productId)throws Exception;
	public int update(TNTicket_CommodityDetail item)throws Exception;
	public int updateByProdCommIdAndType(TNTicket_CommodityDetail item)throws Exception;
	public void updateSelective(TNTicketCommodityItem item);
	public List<TNTicketCommodityItem> selectByProdId(String product_id);
	public TNTicketCommodityItem selectByProdCommId(String productId,String commodityId);
	public List<TNTicketCommodityItem> selectByProdComName(String productId,String commodityName);
	public void updateByProdCommId(String productId,String commodityId);
	public void deleteLinkByProdCommId(String productId,String commodityId);
	public void deleteById(String id);
	public List<TNTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<TNTicketCommodityItem>  selectByProdidAndIsLinked(Map<String, String> map);
	public List<TNTicketCommodityItem> getActiveCommodity(String productId);
}
